package com.qingcloud.task.model;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 勘察任务表
 * </p>
 *
 * @author zhengjibin
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="TdTask对象", description="勘察任务表")
@TableName(value = "td_task")
public class Task implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "task_id", type = IdType.AUTO)
    private Long taskId;

    @ApiModelProperty(value = "任务编号")
    private String taskCode;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "数据来源：1=污染源，2=水环境综合治理",example = "0")
    private Integer source;

    @ApiModelProperty(value = "任务类型：1=报警，2=日常巡查，3=整治行动",example = "0")
    private Integer type;

    @ApiModelProperty(value = "完成状态(0:未开始，1：进行中，2：已完成)",example = "0")
    private Integer status;

    @ApiModelProperty(value = "开始时间")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "0=pc创建，1=app创建",example = "0")
    private Integer createType;

    @ApiModelProperty(value = "创建任务描述")
    private String remarks;

    @ApiModelProperty(value = "任务结果描述")
    private String remarksResult;

    @ApiModelProperty(value = "完成时间")
    private LocalDateTime finishedTime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "创建人")
    private String createUser;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "修改人")
    private String updateUser;

}
